package org.mango.jtop.controller;

import com.alibaba.fastjson.JSONObject;
import com.jfinal.aop.Inject;
import io.jboot.web.controller.JbootController;
import io.jboot.web.controller.annotation.RequestMapping;
import org.mango.jtop.service.TopService;

@RequestMapping("/top")
public class TopController extends JbootController {
    @Inject
    private TopService topService;
    public void info() {
        JSONObject json = topService.handleTopInfo();
        renderJson(json);
    }
}
